/* The PayPal redirect URL is passed in the hash.
 * If JavaScript is enabled, include this in the suggested pagamigo
 * invocation.  If JavaScript is _not_ enabled, this code will not be
 * run; the user will instead be prompted at the console to enter the
 * URL. This provides graceful fallback.
 */

window.onload = function() {
	const pre = document.getElementsByTagName("pre")[2];

	/* Remove the leading # */
	const to = window.location.hash.slice(1);

	pre.innerText += " --url '" + to + "'";
};
